curl --request POST \
--url https://api.getmaxim.ai/v1/prompt-tools \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"workspaceId": "<string>",
"name": "<string>",
"description": "<string>",
"type": "PROGRAM",
"folderId": "<string>",
"config": {
"args": "<string>",
"code": "<string>",
"schema": {
"type": "function",
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {}
}
},
"lang": "javascript",
"scripts": "<string>",
"sample": "<string>"
}
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"type": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"config": null,
"folderId": "<string>",
"fromMcpServer": "<string>"
}
}Create a new prompt tool
curl --request POST \
--url https://api.getmaxim.ai/v1/prompt-tools \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"workspaceId": "<string>",
"name": "<string>",
"description": "<string>",
"type": "PROGRAM",
"folderId": "<string>",
"config": {
"args": "<string>",
"code": "<string>",
"schema": {
"type": "function",
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {}
}
},
"lang": "javascript",
"scripts": "<string>",
"sample": "<string>"
}
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"type": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"config": null,
"folderId": "<string>",
"fromMcpServer": "<string>"
}
}API key for authentication
Unique identifier for the workspace
Name of the prompt tool
Description of the prompt tool
Type of the prompt tool
PROGRAM, API, SCHEMA Folder ID where the prompt tool is located
Configuration for the prompt tool
Show child attributes
Prompt tool created successfully
Show child attributes
Was this page helpful?